<extend name="Index:base" />
<block name="body">
<div class="hd-menu-list">
	<ul>
		<li>
			<a href="{:U('index')}">管理员</a>
		</li>
		<li class="active">
			<a href="#">添加管理员</a>
		</li>
	</ul>
</div>
<form onsubmit="return hd_submit(this,'__ACTION__','{:U('index')}')" class="hd-form">
	<table class="hd-table hd-table-form">
		<thead>
        <tr>
            <td colspan="2">添加管理员</td>
        </tr>
    	</thead>
    		<tr>
    			<th class="hd-w120">用户名<span class="star">*</span></th>
    			<td >
    				<input class="hd-w300" type="text" required name="name">
                </td>
    		</tr>
    		<tr>
    			<th>密码<span class="star">*</span></th>
    			<td><input class="hd-w300" type="password" name="pwd"></td>
    		</tr>
    		<tr>
    			<th>确认密码<span class="star">*</span></th>
    			<td><input class="hd-w300" type="password" name="pwdc"></td>
    		</tr>
    		<tr>
    			<th>邮箱<span class="star">*</span></th>
    			<td><input type="text" required name="mail" class="hd-w300"></td>
    		</tr>
    		<tr>
                <th>状态</th>
                <td>
                    <label><input type="radio" checked="checked" name="islock" value="0"> √ </label>
                    <label><input type="radio" name="islock" value="1"> X </label>
                </td>
                </tr>
            <tr>
    			<th>所属组<span class="star">*</span></th>
    			<td>
    				<foreach name="group" item="v">
                    <label><input type="checkbox" name="gid[]" value="{$v.id}"> {$v.title}</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </foreach>
    			</td>
    		</tr>
	</table>
	<input type="submit" value="确定" class="hd-btn">
</form>
</block>